package com.yizhuoyan.his.web;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.servlet.config.annotation.*;
import org.springframework.web.servlet.mvc.ParameterizableViewController;

@SpringBootApplication
@ServletComponentScan
public class HisWebApplication implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/")
                .setViewName("/index.html");
    }

    public static void main(String[] args) {
        ConfigurableApplicationContext app = SpringApplication.run(HisWebApplication.class, args);

    }

}
